package com.my.blog.myblog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.blog.myblog.entity.Visit;
import com.my.blog.myblog.entity.custom.TimeCount;
import com.my.blog.myblog.mapper.VisitMapper;
import com.my.blog.myblog.service.VisitService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/***
 *
 * @Auther: MuYun
 * @Date: 2021/9/6 14:09
 * @Description：
 *
 */
@Service
public class VisitServiceImpl extends ServiceImpl<VisitMapper, Visit> implements VisitService {

    @Resource
    private VisitMapper visitMapper;

    @Override
    public List<TimeCount> selectVisitListByDate(Map<String, Object> map) {
        return visitMapper.selectVisitListByDate(map);
    }

    @Override
    public List<?> selectLikeVisitListGroupByIp(Map<String, Object> map) {
        return visitMapper.selectLikeVisitListGroupByIp(map);
    }
}
